package com.neu.canteen.service.impl;

import java.util.List;

import com.neu.canteen.dao.CustomerDao;
import com.neu.canteen.dao.impl.CustomerDaoImpl;
import com.neu.canteen.domain.Customer;
import com.neu.canteen.domain.FoodType;
import com.neu.canteen.service.CustomerService;

public class CustomerServiceImpl implements CustomerService{

	private CustomerDao customerDao;
	
	public CustomerServiceImpl(){
		this.customerDao = new CustomerDaoImpl();
	}
 
 
	@Override
	public Customer login(String loginName,String password) {
		return customerDao.login(loginName,password);
	}


	@Override
	public List<Customer> findAll() {
		return customerDao.findAll();
	}
	
	public int add(Customer customer){
		return customerDao.add(customer);
	}
	
	public int deleteCustomoerId(int id){
		return customerDao.deleteCustomoerId(id);
	}
	public int updataCustomoerId(Customer customer){
		return customerDao.updataCustomoerId(customer);
	}
}
